{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "68e4ef33",
   "metadata": {},
   "source": [
    "# 搜索POI"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a0ce087a",
   "metadata": {},
   "source": [
    "## 1、基于搜索关键字"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "9c819c09",
   "metadata": {},
   "outputs": [],
   "source": [
    "# key ： 3ed850364f22749e0e369f88a6a9405a"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "bc5c842b",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "58ea87a3",
   "metadata": {},
   "outputs": [],
   "source": [
    "POI_url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "\n",
    "payload = {\n",
    "    'key':'3ed850364f22749e0e369f88a6a9405a',\n",
    "    'keywords':'杨国福(中大店)|瑞幸咖啡',\n",
    "    'extensions':'all',\n",
    "    \n",
    "}\n",
    "\n",
    "r = requests.get(url=POI_url, params=payload )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "4ca85448",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [],\n",
       "  'cities': [{'citycode': '021',\n",
       "    'adcode': '310000',\n",
       "    'num': '571',\n",
       "    'name': '上海市'},\n",
       "   {'citycode': '010', 'adcode': '110000', 'num': '395', 'name': '北京市'},\n",
       "   {'citycode': '020', 'adcode': '440100', 'num': '299', 'name': '广州市'},\n",
       "   {'citycode': '0755', 'adcode': '440300', 'num': '277', 'name': '深圳市'},\n",
       "   {'citycode': '0571', 'adcode': '330100', 'num': '256', 'name': '杭州市'},\n",
       "   {'citycode': '028', 'adcode': '510100', 'num': '240', 'name': '成都市'},\n",
       "   {'citycode': '025', 'adcode': '320100', 'num': '223', 'name': '南京市'},\n",
       "   {'citycode': '027', 'adcode': '420100', 'num': '183', 'name': '武汉市'},\n",
       "   {'citycode': '023', 'adcode': '500000', 'num': '180', 'name': '重庆市'},\n",
       "   {'citycode': '0731', 'adcode': '430100', 'num': '167', 'name': '长沙市'},\n",
       "   {'citycode': '022', 'adcode': '120000', 'num': '145', 'name': '天津市'},\n",
       "   {'citycode': '0512', 'adcode': '320500', 'num': '143', 'name': '苏州市'},\n",
       "   {'citycode': '0574', 'adcode': '330200', 'num': '141', 'name': '宁波市'},\n",
       "   {'citycode': '029', 'adcode': '610100', 'num': '139', 'name': '西安市'},\n",
       "   {'citycode': '0510', 'adcode': '320200', 'num': '103', 'name': '无锡市'},\n",
       "   {'citycode': '0592', 'adcode': '350200', 'num': '99', 'name': '厦门市'},\n",
       "   {'citycode': '0591', 'adcode': '350100', 'num': '96', 'name': '福州市'},\n",
       "   {'citycode': '0371', 'adcode': '410100', 'num': '96', 'name': '郑州市'},\n",
       "   {'citycode': '0551', 'adcode': '340100', 'num': '86', 'name': '合肥市'},\n",
       "   {'citycode': '024', 'adcode': '210100', 'num': '81', 'name': '沈阳市'},\n",
       "   {'citycode': '0871', 'adcode': '530100', 'num': '75', 'name': '昆明市'},\n",
       "   {'citycode': '0791', 'adcode': '360100', 'num': '75', 'name': '南昌市'},\n",
       "   {'citycode': '0411', 'adcode': '210200', 'num': '74', 'name': '大连市'},\n",
       "   {'citycode': '0757', 'adcode': '440600', 'num': '72', 'name': '佛山市'},\n",
       "   {'citycode': '0532', 'adcode': '370200', 'num': '70', 'name': '青岛市'},\n",
       "   {'citycode': '0771', 'adcode': '450100', 'num': '66', 'name': '南宁市'},\n",
       "   {'citycode': '0577', 'adcode': '330300', 'num': '63', 'name': '温州市'},\n",
       "   {'citycode': '0531', 'adcode': '370100', 'num': '59', 'name': '济南市'},\n",
       "   {'citycode': '0851', 'adcode': '520100', 'num': '57', 'name': '贵阳市'},\n",
       "   {'citycode': '0769', 'adcode': '441900', 'num': '57', 'name': '东莞市'},\n",
       "   {'citycode': '0579', 'adcode': '330700', 'num': '53', 'name': '金华市'},\n",
       "   {'citycode': '0595', 'adcode': '350500', 'num': '51', 'name': '泉州市'},\n",
       "   {'citycode': '0519', 'adcode': '320400', 'num': '47', 'name': '常州市'},\n",
       "   {'citycode': '0513', 'adcode': '320600', 'num': '45', 'name': '南通市'},\n",
       "   {'citycode': '0576', 'adcode': '331000', 'num': '43', 'name': '台州市'},\n",
       "   {'citycode': '0752', 'adcode': '441300', 'num': '41', 'name': '惠州市'},\n",
       "   {'citycode': '0573', 'adcode': '330400', 'num': '41', 'name': '嘉兴市'},\n",
       "   {'citycode': '0575', 'adcode': '330600', 'num': '40', 'name': '绍兴市'},\n",
       "   {'citycode': '0311', 'adcode': '130100', 'num': '38', 'name': '石家庄市'},\n",
       "   {'citycode': '0431', 'adcode': '220100', 'num': '34', 'name': '长春市'},\n",
       "   {'citycode': '0898', 'adcode': '460100', 'num': '33', 'name': '海口市'},\n",
       "   {'citycode': '0351', 'adcode': '140100', 'num': '33', 'name': '太原市'},\n",
       "   {'citycode': '0523', 'adcode': '321200', 'num': '31', 'name': '泰州市'},\n",
       "   {'citycode': '0451', 'adcode': '230100', 'num': '30', 'name': '哈尔滨市'},\n",
       "   {'citycode': '0572', 'adcode': '330500', 'num': '29', 'name': '湖州市'},\n",
       "   {'citycode': '0539', 'adcode': '371300', 'num': '29', 'name': '临沂市'},\n",
       "   {'citycode': '0514', 'adcode': '321000', 'num': '29', 'name': '扬州市'},\n",
       "   {'citycode': '0511', 'adcode': '321100', 'num': '28', 'name': '镇江市'},\n",
       "   {'citycode': '0931', 'adcode': '620100', 'num': '27', 'name': '兰州市'},\n",
       "   {'citycode': '0760', 'adcode': '442000', 'num': '27', 'name': '中山市'},\n",
       "   {'citycode': '0756', 'adcode': '440400', 'num': '25', 'name': '珠海市'},\n",
       "   {'citycode': '0516', 'adcode': '320300', 'num': '25', 'name': '徐州市'},\n",
       "   {'citycode': '0517', 'adcode': '320800', 'num': '23', 'name': '淮安市'},\n",
       "   {'citycode': '0816', 'adcode': '510700', 'num': '22', 'name': '绵阳市'},\n",
       "   {'citycode': '0515', 'adcode': '320900', 'num': '22', 'name': '盐城市'},\n",
       "   {'citycode': '0817', 'adcode': '511300', 'num': '21', 'name': '南充市'},\n",
       "   {'citycode': '0758', 'adcode': '441200', 'num': '21', 'name': '肇庆市'},\n",
       "   {'citycode': '0750', 'adcode': '440700', 'num': '21', 'name': '江门市'},\n",
       "   {'citycode': '0838', 'adcode': '510600', 'num': '18', 'name': '德阳市'},\n",
       "   {'citycode': '0578', 'adcode': '331100', 'num': '17', 'name': '丽水市'},\n",
       "   {'citycode': '0536', 'adcode': '370700', 'num': '16', 'name': '潍坊市'},\n",
       "   {'citycode': '0793', 'adcode': '361100', 'num': '15', 'name': '上饶市'},\n",
       "   {'citycode': '0754', 'adcode': '440500', 'num': '15', 'name': '汕头市'},\n",
       "   {'citycode': '0594', 'adcode': '350300', 'num': '15', 'name': '莆田市'},\n",
       "   {'citycode': '0570', 'adcode': '330800', 'num': '15', 'name': '衢州市'},\n",
       "   {'citycode': '0535', 'adcode': '370600', 'num': '15', 'name': '烟台市'},\n",
       "   {'citycode': '0759', 'adcode': '440800', 'num': '14', 'name': '湛江市'},\n",
       "   {'citycode': '0736', 'adcode': '430700', 'num': '14', 'name': '常德市'},\n",
       "   {'citycode': '0553', 'adcode': '340200', 'num': '14', 'name': '芜湖市'},\n",
       "   {'citycode': '0537', 'adcode': '370800', 'num': '14', 'name': '济宁市'},\n",
       "   {'citycode': '0533', 'adcode': '370300', 'num': '14', 'name': '淄博市'},\n",
       "   {'citycode': '0527', 'adcode': '321300', 'num': '14', 'name': '宿迁市'},\n",
       "   {'citycode': '0899', 'adcode': '460200', 'num': '13', 'name': '三亚市'},\n",
       "   {'citycode': '0852', 'adcode': '520300', 'num': '13', 'name': '遵义市'},\n",
       "   {'citycode': '0831', 'adcode': '511500', 'num': '13', 'name': '宜宾市'},\n",
       "   {'citycode': '0792', 'adcode': '360400', 'num': '13', 'name': '九江市'},\n",
       "   {'citycode': '0772', 'adcode': '450200', 'num': '13', 'name': '柳州市'},\n",
       "   {'citycode': '0733', 'adcode': '430200', 'num': '13', 'name': '株洲市'},\n",
       "   {'citycode': '0663', 'adcode': '445200', 'num': '13', 'name': '揭阳市'},\n",
       "   {'citycode': '0596', 'adcode': '350600', 'num': '13', 'name': '漳州市'},\n",
       "   {'citycode': '0773', 'adcode': '450300', 'num': '12', 'name': '桂林市'},\n",
       "   {'citycode': '0599', 'adcode': '350700', 'num': '12', 'name': '南平市'},\n",
       "   {'citycode': '0471', 'adcode': '150100', 'num': '12', 'name': '呼和浩特市'},\n",
       "   {'citycode': '0910', 'adcode': '610400', 'num': '11', 'name': '咸阳市'},\n",
       "   {'citycode': '0833', 'adcode': '511100', 'num': '11', 'name': '乐山市'},\n",
       "   {'citycode': '0813', 'adcode': '510300', 'num': '11', 'name': '自贡市'},\n",
       "   {'citycode': '0763', 'adcode': '441800', 'num': '11', 'name': '清远市'},\n",
       "   {'citycode': '0734', 'adcode': '430400', 'num': '11', 'name': '衡阳市'},\n",
       "   {'citycode': '0716', 'adcode': '421000', 'num': '11', 'name': '荆州市'},\n",
       "   {'citycode': '0552', 'adcode': '340300', 'num': '11', 'name': '蚌埠市'},\n",
       "   {'citycode': '0550', 'adcode': '341100', 'num': '11', 'name': '滁州市'},\n",
       "   {'citycode': '1558', 'adcode': '341200', 'num': '10', 'name': '阜阳市'},\n",
       "   {'citycode': '0797', 'adcode': '360700', 'num': '10', 'name': '赣州市'},\n",
       "   {'citycode': '0732', 'adcode': '430300', 'num': '10', 'name': '湘潭市'},\n",
       "   {'citycode': '0717', 'adcode': '420500', 'num': '10', 'name': '宜昌市'},\n",
       "   {'citycode': '0668', 'adcode': '440900', 'num': '10', 'name': '茂名市'},\n",
       "   {'citycode': '0598', 'adcode': '350400', 'num': '10', 'name': '三明市'},\n",
       "   {'citycode': '0593', 'adcode': '350900', 'num': '10', 'name': '宁德市'},\n",
       "   {'citycode': '0556', 'adcode': '340800', 'num': '10', 'name': '安庆市'},\n",
       "   {'citycode': '0546', 'adcode': '370500', 'num': '10', 'name': '东营市'},\n",
       "   {'citycode': '0379', 'adcode': '410300', 'num': '10', 'name': '洛阳市'},\n",
       "   {'citycode': '0376', 'adcode': '411500', 'num': '10', 'name': '信阳市'},\n",
       "   {'citycode': '0354', 'adcode': '140700', 'num': '10', 'name': '晋中市'},\n",
       "   {'citycode': '0312', 'adcode': '130600', 'num': '10', 'name': '保定市'},\n",
       "   {'citycode': '1833', 'adcode': '511400', 'num': '9', 'name': '眉山市'},\n",
       "   {'citycode': '1832', 'adcode': '511000', 'num': '9', 'name': '内江市'},\n",
       "   {'citycode': '0798', 'adcode': '360200', 'num': '9', 'name': '景德镇市'},\n",
       "   {'citycode': '0730', 'adcode': '430600', 'num': '9', 'name': '岳阳市'},\n",
       "   {'citycode': '0710', 'adcode': '420600', 'num': '9', 'name': '襄阳市'},\n",
       "   {'citycode': '0518', 'adcode': '320700', 'num': '9', 'name': '连云港市'},\n",
       "   {'citycode': '0377', 'adcode': '411300', 'num': '9', 'name': '南阳市'},\n",
       "   {'citycode': '0917', 'adcode': '610300', 'num': '8', 'name': '宝鸡市'},\n",
       "   {'citycode': '0737', 'adcode': '430900', 'num': '8', 'name': '益阳市'},\n",
       "   {'citycode': '0660', 'adcode': '441500', 'num': '8', 'name': '汕尾市'},\n",
       "   {'citycode': '0580', 'adcode': '330900', 'num': '8', 'name': '舟山市'},\n",
       "   {'citycode': '0558', 'adcode': '341600', 'num': '8', 'name': '亳州市'},\n",
       "   {'citycode': '0374', 'adcode': '411000', 'num': '8', 'name': '许昌市'},\n",
       "   {'citycode': '0370', 'adcode': '411400', 'num': '8', 'name': '商丘市'},\n",
       "   {'citycode': '0335', 'adcode': '130300', 'num': '8', 'name': '秦皇岛市'},\n",
       "   {'citycode': '0830', 'adcode': '510500', 'num': '7', 'name': '泸州市'},\n",
       "   {'citycode': '0762', 'adcode': '441600', 'num': '7', 'name': '河源市'},\n",
       "   {'citycode': '0745', 'adcode': '431200', 'num': '7', 'name': '怀化市'},\n",
       "   {'citycode': '0633', 'adcode': '371100', 'num': '7', 'name': '日照市'},\n",
       "   {'citycode': '0563', 'adcode': '341800', 'num': '7', 'name': '宣城市'},\n",
       "   {'citycode': '0557', 'adcode': '341300', 'num': '7', 'name': '宿州市'},\n",
       "   {'citycode': '0412', 'adcode': '210300', 'num': '7', 'name': '鞍山市'},\n",
       "   {'citycode': '0826', 'adcode': '511600', 'num': '6', 'name': '广安市'},\n",
       "   {'citycode': '0825', 'adcode': '510900', 'num': '6', 'name': '遂宁市'},\n",
       "   {'citycode': '0795', 'adcode': '360900', 'num': '6', 'name': '宜春市'},\n",
       "   {'citycode': '0794', 'adcode': '361000', 'num': '6', 'name': '抚州市'},\n",
       "   {'citycode': '0768', 'adcode': '445100', 'num': '6', 'name': '潮州市'},\n",
       "   {'citycode': '0766', 'adcode': '445300', 'num': '6', 'name': '云浮市'},\n",
       "   {'citycode': '0751', 'adcode': '440200', 'num': '6', 'name': '韶关市'},\n",
       "   {'citycode': '0718', 'adcode': '422800', 'num': '6', 'name': '恩施土家族苗族自治州'},\n",
       "   {'citycode': '0715', 'adcode': '421200', 'num': '6', 'name': '咸宁市'},\n",
       "   {'citycode': '0712', 'adcode': '420900', 'num': '6', 'name': '孝感市'},\n",
       "   {'citycode': '0662', 'adcode': '441700', 'num': '6', 'name': '阳江市'},\n",
       "   {'citycode': '0631', 'adcode': '371000', 'num': '6', 'name': '威海市'},\n",
       "   {'citycode': '0564', 'adcode': '341500', 'num': '6', 'name': '六安市'},\n",
       "   {'citycode': '0559', 'adcode': '341000', 'num': '6', 'name': '黄山市'},\n",
       "   {'citycode': '0555', 'adcode': '340500', 'num': '6', 'name': '马鞍山市'},\n",
       "   {'citycode': '0554', 'adcode': '340400', 'num': '6', 'name': '淮南市'},\n",
       "   {'citycode': '0538', 'adcode': '370900', 'num': '6', 'name': '泰安市'},\n",
       "   {'citycode': '0378', 'adcode': '410200', 'num': '6', 'name': '开封市'},\n",
       "   {'citycode': '0316', 'adcode': '131000', 'num': '6', 'name': '廊坊市'},\n",
       "   {'citycode': '0310', 'adcode': '130400', 'num': '6', 'name': '邯郸市'},\n",
       "   {'citycode': '0834', 'adcode': '513400', 'num': '5', 'name': '凉山彝族自治州'},\n",
       "   {'citycode': '0827', 'adcode': '511900', 'num': '5', 'name': '巴中市'},\n",
       "   {'citycode': '0775', 'adcode': '450900', 'num': '5', 'name': '玉林市'},\n",
       "   {'citycode': '0738', 'adcode': '431300', 'num': '5', 'name': '娄底市'},\n",
       "   {'citycode': '0714', 'adcode': '420200', 'num': '5', 'name': '黄石市'},\n",
       "   {'citycode': '0632', 'adcode': '370400', 'num': '5', 'name': '枣庄市'},\n",
       "   {'citycode': '0597', 'adcode': '350800', 'num': '5', 'name': '龙岩市'},\n",
       "   {'citycode': '0562', 'adcode': '340700', 'num': '5', 'name': '铜陵市'},\n",
       "   {'citycode': '0561', 'adcode': '340600', 'num': '5', 'name': '淮北市'},\n",
       "   {'citycode': '0530', 'adcode': '371700', 'num': '5', 'name': '菏泽市'},\n",
       "   {'citycode': '0453', 'adcode': '231000', 'num': '5', 'name': '牡丹江市'},\n",
       "   {'citycode': '0416', 'adcode': '210700', 'num': '5', 'name': '锦州市'},\n",
       "   {'citycode': '0413', 'adcode': '210400', 'num': '5', 'name': '抚顺市'},\n",
       "   {'citycode': '0317', 'adcode': '130900', 'num': '5', 'name': '沧州市'},\n",
       "   {'citycode': '0315', 'adcode': '130200', 'num': '5', 'name': '唐山市'},\n",
       "   {'citycode': '0314', 'adcode': '130800', 'num': '5', 'name': '承德市'},\n",
       "   {'citycode': '1433', 'adcode': '222400', 'num': '4', 'name': '延边朝鲜族自治州'},\n",
       "   {'citycode': '0835', 'adcode': '511800', 'num': '4', 'name': '雅安市'},\n",
       "   {'citycode': '0796', 'adcode': '360800', 'num': '4', 'name': '吉安市'},\n",
       "   {'citycode': '0739', 'adcode': '430500', 'num': '4', 'name': '邵阳市'},\n",
       "   {'citycode': '0701', 'adcode': '360600', 'num': '4', 'name': '鹰潭市'},\n",
       "   {'citycode': '0534', 'adcode': '371400', 'num': '4', 'name': '德州市'},\n",
       "   {'citycode': '0429', 'adcode': '211400', 'num': '4', 'name': '葫芦岛市'},\n",
       "   {'citycode': '0417', 'adcode': '210800', 'num': '4', 'name': '营口市'},\n",
       "   {'citycode': '0396', 'adcode': '411700', 'num': '4', 'name': '驻马店市'},\n",
       "   {'citycode': '0395', 'adcode': '411100', 'num': '4', 'name': '漯河市'},\n",
       "   {'citycode': '0391', 'adcode': '410800', 'num': '4', 'name': '焦作市'},\n",
       "   {'citycode': '0373', 'adcode': '410700', 'num': '4', 'name': '新乡市'},\n",
       "   {'citycode': '0372', 'adcode': '410500', 'num': '4', 'name': '安阳市'},\n",
       "   {'citycode': '0357', 'adcode': '141000', 'num': '4', 'name': '临汾市'},\n",
       "   {'citycode': '0319', 'adcode': '130500', 'num': '4', 'name': '邢台市'},\n",
       "   {'citycode': '0913', 'adcode': '610500', 'num': '3', 'name': '渭南市'},\n",
       "   {'citycode': '0912', 'adcode': '610800', 'num': '3', 'name': '榆林市'},\n",
       "   {'citycode': '0911', 'adcode': '610600', 'num': '3', 'name': '延安市'},\n",
       "   {'citycode': '0872', 'adcode': '532900', 'num': '3', 'name': '大理白族自治州'},\n",
       "   {'citycode': '0859', 'adcode': '522300', 'num': '3', 'name': '黔西南布依族苗族自治州'},\n",
       "   {'citycode': '0855', 'adcode': '522600', 'num': '3', 'name': '黔东南苗族侗族自治州'},\n",
       "   {'citycode': '0839', 'adcode': '510800', 'num': '3', 'name': '广元市'},\n",
       "   {'citycode': '0790', 'adcode': '360500', 'num': '3', 'name': '新余市'},\n",
       "   {'citycode': '0746', 'adcode': '431100', 'num': '3', 'name': '永州市'},\n",
       "   {'citycode': '0722', 'adcode': '421300', 'num': '3', 'name': '随州市'},\n",
       "   {'citycode': '0635', 'adcode': '371500', 'num': '3', 'name': '聊城市'},\n",
       "   {'citycode': '0566', 'adcode': '341700', 'num': '3', 'name': '池州市'},\n",
       "   {'citycode': '0543', 'adcode': '371600', 'num': '3', 'name': '滨州市'},\n",
       "   {'citycode': '0459', 'adcode': '230600', 'num': '3', 'name': '大庆市'},\n",
       "   {'citycode': '0452', 'adcode': '230200', 'num': '3', 'name': '齐齐哈尔市'},\n",
       "   {'citycode': '0427', 'adcode': '211100', 'num': '3', 'name': '盘锦市'},\n",
       "   {'citycode': '0415', 'adcode': '210600', 'num': '3', 'name': '丹东市'},\n",
       "   {'citycode': '0414', 'adcode': '210500', 'num': '3', 'name': '本溪市'},\n",
       "   {'citycode': '0393', 'adcode': '410900', 'num': '3', 'name': '濮阳市'},\n",
       "   {'citycode': '0375', 'adcode': '410400', 'num': '3', 'name': '平顶山市'},\n",
       "   {'citycode': '0359', 'adcode': '140800', 'num': '3', 'name': '运城市'},\n",
       "   {'citycode': '0352', 'adcode': '140200', 'num': '3', 'name': '大同市'},\n",
       "   {'citycode': '2728', 'adcode': '429005', 'num': '2', 'name': '潜江市'},\n",
       "   {'citycode': '0878', 'adcode': '532300', 'num': '2', 'name': '楚雄彝族自治州'},\n",
       "   {'citycode': '0877', 'adcode': '530400', 'num': '2', 'name': '玉溪市'},\n",
       "   {'citycode': '0873', 'adcode': '532500', 'num': '2', 'name': '红河哈尼族彝族自治州'},\n",
       "   {'citycode': '0856', 'adcode': '520600', 'num': '2', 'name': '铜仁市'},\n",
       "   {'citycode': '0728', 'adcode': '429004', 'num': '2', 'name': '仙桃市'},\n",
       "   {'citycode': '0713', 'adcode': '421100', 'num': '2', 'name': '黄冈市'},\n",
       "   {'citycode': '0711', 'adcode': '420700', 'num': '2', 'name': '鄂州市'},\n",
       "   {'citycode': '0434', 'adcode': '220300', 'num': '2', 'name': '四平市'},\n",
       "   {'citycode': '0419', 'adcode': '211000', 'num': '2', 'name': '辽阳市'},\n",
       "   {'citycode': '0394', 'adcode': '411600', 'num': '2', 'name': '周口市'},\n",
       "   {'citycode': '0392', 'adcode': '410600', 'num': '2', 'name': '鹤壁市'},\n",
       "   {'citycode': '0358', 'adcode': '141100', 'num': '2', 'name': '吕梁市'},\n",
       "   {'citycode': '0356', 'adcode': '140500', 'num': '2', 'name': '晋城市'},\n",
       "   {'citycode': '0313', 'adcode': '130700', 'num': '2', 'name': '张家口市'},\n",
       "   {'citycode': '1755', 'adcode': '450800', 'num': '1', 'name': '贵港市'},\n",
       "   {'citycode': '0919', 'adcode': '610200', 'num': '1', 'name': '铜川市'},\n",
       "   {'citycode': '0916', 'adcode': '610700', 'num': '1', 'name': '汉中市'},\n",
       "   {'citycode': '0883', 'adcode': '530900', 'num': '1', 'name': '临沧市'},\n",
       "   {'citycode': '0876', 'adcode': '532600', 'num': '1', 'name': '文山壮族苗族自治州'},\n",
       "   {'citycode': '0874', 'adcode': '530300', 'num': '1', 'name': '曲靖市'},\n",
       "   {'citycode': '0858', 'adcode': '520200', 'num': '1', 'name': '六盘水市'},\n",
       "   {'citycode': '0836', 'adcode': '513300', 'num': '1', 'name': '甘孜藏族自治州'},\n",
       "   {'citycode': '0776', 'adcode': '451000', 'num': '1', 'name': '百色市'},\n",
       "   {'citycode': '0753', 'adcode': '441400', 'num': '1', 'name': '梅州市'},\n",
       "   {'citycode': '0421', 'adcode': '211300', 'num': '1', 'name': '朝阳市'},\n",
       "   {'citycode': '0410', 'adcode': '211200', 'num': '1', 'name': '铁岭市'},\n",
       "   {'citycode': '0355', 'adcode': '140400', 'num': '1', 'name': '长治市'},\n",
       "   {'citycode': '0318', 'adcode': '131100', 'num': '1', 'name': '衡水市'}]},\n",
       " 'count': '0',\n",
       " 'infocode': '10000',\n",
       " 'pois': [],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fc055b89",
   "metadata": {},
   "source": [
    "## 2、基于周边搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "e348abc0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.678280,23.628439'"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "payload = {\n",
    "    \"key\":\"3ed850364f22749e0e369f88a6a9405a\",\n",
    "    \"address\":\"广东省广州市从化区广州南方学院\"\n",
    "}\n",
    "r = requests.get(url=geo_url, params=payload)\n",
    "广州南方学院_location = r.json()['geocodes'][0]['location']\n",
    "广州南方学院_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "7f16176b",
   "metadata": {},
   "outputs": [],
   "source": [
    "around_url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "\n",
    "payload = {\n",
    "    \"key\":\"3ed850364f22749e0e369f88a6a9405a\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"keywords\":\"奶茶店\"\n",
    "}\n",
    "r = requests.get(around_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "2dfe82f9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '863',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "   'distance': '219',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/58f5b151e31442b391ee95731234c874'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '乐妍茶(中大店)',\n",
       "   'location': '113.680396,23.628066',\n",
       "   'tel': '18028862548',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKYRKNUA'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "   'distance': '311',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周五09:00-20:00,周六至周日10:00-22:00',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '09:00-20:00 10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d335529be9790156ffe05924050a24fb'}],\n",
       "   'typecode': '050400',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '古茗(南方学院店)',\n",
       "   'location': '113.680105,23.630681',\n",
       "   'tel': '18027267535',\n",
       "   'shopid': [],\n",
       "   'id': 'B0IB2GMPW4'},\n",
       "  {'parent': [],\n",
       "   'address': '博学路广州南方学院',\n",
       "   'distance': '471',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ae1aa25fd9869b2c22a20befa0e2809'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '蜜雪冰城',\n",
       "   'location': '113.679282,23.632570',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3THHRNX'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇碧泉路34号',\n",
       "   'distance': '1332',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '檬茶茶',\n",
       "   'location': '113.673788,23.639684',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H64BIH3E'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇温泉东路39号',\n",
       "   'distance': '2463',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '15.00',\n",
       "    'opentime2': '11:30-24:00',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '11:30-24:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d5c8543c5d0f78321233277f24dc9a1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3aa097ccc0319653f0128ea389328922'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '七座烧仙草',\n",
       "   'location': '113.657952,23.640393',\n",
       "   'tel': '18054251918',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2FO32TO'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇温泉东路西四巷9号',\n",
       "   'distance': '2493',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.8',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '醇果茶奶茶店',\n",
       "   'location': '113.658010,23.640962',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HROCIMP7'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇碧泉路一横街26号',\n",
       "   'distance': '3005',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:11:00-24:00',\n",
       "    'rating': '4.2',\n",
       "    'open_time': '11:00-24:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/950dc3cec9d8136b8c3e7dd35d4bd68f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1159ea966866084748facb465a18612f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9b7863119970054ef064d9c91ae92c8a'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '查茶奶茶店',\n",
       "   'location': '113.655072,23.645081',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFIZ1UK0'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇桃园东路37号',\n",
       "   'distance': '3061',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.6',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '茶千杯',\n",
       "   'location': '113.669935,23.602018',\n",
       "   'tel': '13059127196',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKCZRQ4D'},\n",
       "  {'parent': [],\n",
       "   'address': '政通路温泉镇灌村卫生院西北侧约210米',\n",
       "   'distance': '6325',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '益禾堂',\n",
       "   'location': '113.712359,23.580963',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKXSDU8N'},\n",
       "  {'parent': [],\n",
       "   'address': 'X869与麻村社学街交叉路口往西南约250米',\n",
       "   'distance': '6947',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f8ea2d1f0d655aac6134f51fdee8b9a9'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '卡奇凌奶茶吧',\n",
       "   'location': '113.615105,23.605110',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0GUOR4T87'},\n",
       "  {'parent': [],\n",
       "   'address': '街麻街654号(麻二村村委斜对面)',\n",
       "   'distance': '7000',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:09:00-22:00',\n",
       "    'rating': '3.7',\n",
       "    'open_time': '09:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/890329d2f3fd1e6f835a94e88f948cc9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e4b6b57973c69d560183647d0ea734fe'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c4cc6105e00952a90679874608b2851c'}],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '清心坊奶茶店',\n",
       "   'location': '113.614870,23.604372',\n",
       "   'tel': '13926081416',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKRASC0'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街御景山水大道30号216房',\n",
       "   'distance': '7583',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '茶槑槑',\n",
       "   'location': '113.618899,23.587448',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G0GCKDPZ'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街道环市东路1125号广州南洋理工职业学院',\n",
       "   'distance': '8294',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '柠著鲜果奶茶(南洋店)',\n",
       "   'location': '113.614600,23.582100',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H2BYJUP5'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街道环市东路1125号广州南洋理工职业学院',\n",
       "   'distance': '8294',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': 'LV柠檬茶',\n",
       "   'location': '113.614600,23.582100',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0G304HEII'},\n",
       "  {'parent': [],\n",
       "   'address': '南洋职业学院三饭二楼',\n",
       "   'distance': '8357',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.6',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '茶之都',\n",
       "   'location': '113.615101,23.580638',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKT6043'},\n",
       "  {'parent': [],\n",
       "   'address': '环市东路1123号荔枝园(南洋学院食堂)',\n",
       "   'distance': '8463',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;冷饮店;冷饮店',\n",
       "   'photos': [],\n",
       "   'typecode': '050700',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '柠著鲜果奶茶(南洋店)',\n",
       "   'location': '113.614239,23.580103',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HROCIUXQ'},\n",
       "  {'parent': [],\n",
       "   'address': '南洋理工职业学院',\n",
       "   'distance': '8497',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ae1aa25fd9869b2c22a20befa0e2809'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '蜜雪冰城',\n",
       "   'location': '113.613263,23.580713',\n",
       "   'tel': '19124359408',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G2AOCJ1U'},\n",
       "  {'parent': [],\n",
       "   'address': '良口镇石岭村28号石岭村委对面石岭农贸综合市场',\n",
       "   'distance': '9145',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '12:00-18:00',\n",
       "    'rating': '5.0',\n",
       "    'open_time': '12:00-18:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/32b90012-4e43-4370-86b6-253aa6b59c9e.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/38a1af3b-c949-441e-8771-0033322a9c34.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/cf300f6b-0211-41bd-ac12-4a9672b6130f.jpg'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '念时光奶茶店',\n",
       "   'location': '113.664646,23.709642',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLJTSDL'},\n",
       "  {'parent': 'B00141IC5C',\n",
       "   'address': '怡乐路与三区二街交叉口南20米',\n",
       "   'distance': '9974',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;糕饼店;糕饼店',\n",
       "   'photos': [],\n",
       "   'typecode': '050800',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '320',\n",
       "   'adname': '从化区',\n",
       "   'name': '良口碧水新村奶茶店',\n",
       "   'location': '113.730923,23.703959',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFI0WE99'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街凤院村隔坑队78号',\n",
       "   'distance': '10828',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '自由屋奶茶店',\n",
       "   'location': '113.615430,23.549941',\n",
       "   'tel': '15915735995',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HR0NP3VV'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
